#include "XGLWindow.h"

#include "XGLWindowImpl.h"

//#include <X11/Xlib.h>

#include <string>
using std::string;

using namespace neiderra::core;
using namespace neiderra::gui;

XGLWindow::XGLWindow(Core* core, const string& title, int x, int y, int width, int height) : GUIWindow( core )
{
	// hack 
	impl_ = new XGLWindowImpl(core, title, x, y, width, height, this);
}

XGLWindow::~XGLWindow()
{
	delete impl_;
}

/*int XGLWindow::ResponseEvent(XEvent& e)
{
	switch(e.type)
	{
		case MapNotify:
			show();
			break;
	}
}*/

/*long XGLWindow::getID()
{
	return ((XGLWindowImpl*)impl_)->GetID();
}*/

void XGLWindow::show()
{
	impl_->show();
}

void XGLWindow::update()
{
	impl_->update();
}
